package system.task.logger;

public class TaskLoggerUtil {
    public static StringBuilder buildContent(String time, String message, boolean newLine) {
        StringBuilder builder = new StringBuilder();
        if (time != null && time.length() > 0) {
            builder.append(time).append(" ");
        }
        builder.append(message);
        if (newLine) {
            builder.append(System.lineSeparator());
        }
        return builder;
    }
}
